import IRoleInsertOrUpdateForm from '@/model/form/role/IRoleInsertOrUpdateForm'
import IResVO from '@/model/vo/common/IResVO'
import $http from '@/util/http'
import { AxiosResponse } from 'axios'

// 新增/修改 角色
export default function roleInsertOrUpdateApi(form: IRoleInsertOrUpdateForm) {
  return $http.post<IResVO, AxiosResponse<IResVO>, IRoleInsertOrUpdateForm>(
    '/role/insertOrUpdate',
    form
  )
}
